package com.gosilver.beans.factory.config;

import com.gosilver.beans.BeansException;

/**
 * 单例注册接口定义
 */
public interface SingletonBeanRegistry {
    Object getSingleton(String beanName);

    /**
     * 注册单例对象
     */
    void registerSingleton(String beanName, Object singletonObject);

    /**
     * 销毁单例对象
     */
    void destroySingletons() throws BeansException;

}
